package com.dao;

import java.sql.*;
import java.util.Collection;

import javax.sql.RowSet;

import com.objects.Employee;

//JDBCEmployeeDAO implementation of the 
//EmployeeDAO interface. This class can contain all
//JDBC specific code and SQL statements. 
//This hide the implementation details.

public class JDBCEmployeeDAO implements EmployeeDAO{
	  
	public JDBCEmployeeDAO() {
	    // initialization 
	}
	
	// The following methods can use
	// JDBCDAOFactory.createConnection() 
	// to get a connection as required

	
	@Override  
	/** TODO Implement insert employee here.
    * Return newly created customer number
    * or a -1 on error
	*/
	public int insertEmployee() {
		return 0;
	}

	@Override
	/**TODO Implement delete employee here
    * Return true on success, false on failure
	*/
	public boolean deleteEmployee() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	/** Implement find a employee here using supplied
	* argument values as search criteria
	* @param  
	* @return      Return a Transfer Object if found, return null on error or if not found.
	*/
	public Employee findEmployee() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	/** Implement update record here using data
    * from the emplyoyeeData Transfer Object
 	* @param  
	* @return      Return true on success, false on failure or error
	*/
	public boolean updateEmployee() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	/** Implement search employees here using the supplied criteria.
    * @return      Return a RowSet.
    */
	public RowSet selectEmployeesRS() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	/** Implement search employee here using the supplied criteria.
    * Alternatively, implement to return a Collection of Transfer Objects.
	*/
	public Collection selectEmployeesTO() {
		// TODO Auto-generated method stub
		return null;
	}

}
